# Installing Docker and Docker Compose properly

```
# On Void Linux
sudo xbps-install docker docker-compose
sudo groupadd docker
sudo usermod -aG docker $USER
```

Then reboot to take the group assignment to take effect.


# See docker image size

```
sudo docker ps --size
sudo docker images
// mem usage, cpu usage, disk usage all at a glance
sudo docker stats $(sudo docker ps --format={{.Names}}) --no-stream
sudo docker system df --verbose
```


Source: \
- https://stackoverflow.com/questions/26753087/how-to-analyze-disk-usage-of-a-docker-container